home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 10 Scripting / 02 Berger / sinterp / Makefile next >
Encoding:
Makefile  |  2001-10-16  |  1.4 KB  |  58 lines

  1. # All compiler and linker generated files will be written to this directory.
  2. OUTDIR=Debug
  3.  
  4. # Specify all of the object files that are needed to build this executable.
  5. OBJS= \
  6.     $(OUTDIR)\VM.obj \
  7.     $(OUTDIR)\sinterp.obj
  8.  
  9. # Define the name of the compiler and its command-line arguments.
  10. CPP=cl
  11. CPP_FLAGS=/nologo /MLd /WX /GX /Zi /Od /I. /Fo$(OUTDIR)\ /Fd$(OUTDIR)\sinterp.pdb /FD /GZ /c
  12.  
  13. # Define the name of the linker and its command-line arguments.
  14. LINK=link
  15. LINK_FLAGS=/nologo /incremental:no /pdb:$(OUTDIR)\sinterp.pdb /debug /out:$(OUTDIR)\sinterp.exe
  16.  
  17.  
  18. # This is the main target of the Makefile.  It builds everything.
  19. all : $(OUTDIR)\sinterp.exe
  20.  
  21.  
  22. # This target deletes all of the generated files.
  23. clean :
  24.     -@erase $(OBJS)
  25.     -@erase $(OUTDIR)\sinterp.exe
  26.     -@erase $(OUTDIR)\sinterp.ilk
  27.     -@erase $(OUTDIR)\sinterp.pdb
  28.     -@erase $(OUTDIR)\sinterp.idb
  29.  
  30.  
  31. # This next target creates the output directory, if needed.
  32. !IF "$(OS)" == "Windows_NT"
  33. NULL=
  34. !ELSE
  35. NULL=nul
  36. !ENDIF
  37.  
  38. $(OUTDIR) :
  39.     if not exist $(OUTDIR)/$(NULL) mkdir $(OUTDIR)
  40.  
  41.  
  42. # This target actually builds the executable.
  43. $(OUTDIR)\sinterp.exe : $(OUTDIR) $(OBJS)
  44.     $(LINK) $(LINK_FLAGS) $(OBJS)
  45.  
  46.  
  47. ################################################################
  48. # These rules specify all of the file dependencies.
  49.  
  50. .cpp{$(OUTDIR)}.obj::
  51.    $(CPP) $(CPP_FLAGS) $<
  52.  
  53. VM.cpp : VM.H
  54.  
  55. VM.H : Opcode.H
  56.  
  57. sinterp.cpp : VM.H
  58.